import request from '@/utils/request'

// 角色列表
export function getNodeTreeApi(data) {
  return request({
    url: '/api/auth.node/tree',
    method: 'post',
    data
  })
}

export function readNodeApi(data) {
  return request({
    url: '/api/auth.node/read',
    method: 'post',
    data
  })
}

export function createNodeApi(data) {
  return request({
    url: '/api/auth.node/create',
    method: 'post',
    data
  })
}

export function saveNodeApi(data) {
  return request({
    url: '/api/auth.node/save',
    method: 'post',
    data
  })
}

export function deleteNodeApi(data) {
  return request({
    url: '/api/auth.node/delete',
    method: 'post',
    data
  })
}